package com.example.design.proxy.cglib;

/**
 * @Description TOTO
 * @ClassName CgLibProxyTest
 * @Author Yumuhui
 * @Date 2020/5/14 1:17
 * @Version 1.0.0
 */
public class CgLibProxyTest {

    public static void main(String[] args) {
        Subject realSubject = new RealSubject();
        CglibProxy cglibProxy = new CglibProxy();
        RealSubject proxy = (RealSubject) cglibProxy.getInstance(realSubject);
        proxy.operation();
    }
}
